<?php
/**
 *@file CommentCrontab.php
*@author YangLiu
*@date 2015-7-28
*@brief
*/
namespace haibao\comment\business;

use \haibao\comment\data\CommentCrontab as CommentCrontabData;

class CommentCrontab extends \haibao\cms\business\Base{
  
	public static function addCommentCronTab($model){
	    self::checkCronTabModelData($model);
	    $CommentCrontabData = new CommentCrontabData();
	    $CommentCrontabData->add($model);
	}
	
	private static function checkCronTabModelData($model){
	    if(!isset($model->ObjectId)){
	        throw new BusinessException('评论文章ID为空',self::DATA_EMPTY);
	    }
	}

}